package cz.semjobKB.virtuoso.document.impl;

import cz.semjobKB.virtuoso.document.api.IResourceDetail;
import cz.semjobKB.virtuoso.document.api.ITerminologyDetail;

import java.util.List;

public class TerminologyDetail implements ITerminologyDetail {

	
	private final IResourceDetail termDetail;
	private final Integer frequency;
	private final Integer overallFrequency;
	private final Integer totalCount;
	private double tfIdf;
	
	
	public TerminologyDetail(IResourceDetail termDetail,
			Integer freqeuncy, Integer overallFrequency, Integer totalCount) {
		this.termDetail = termDetail;
		this.frequency = freqeuncy;
		this.overallFrequency = overallFrequency;
		this.totalCount = totalCount;		
	}

	
	public String getResourceUri() {		
		return termDetail.getResourceUri();
	}

	
	public String getResourceLemma() {
		return termDetail.getResourceLemma();
	}

	
	public List<String> getResourceRepresentation() {
		return termDetail.getResourceRepresentation();
	}

	
	public Integer getFrequency() {
		return frequency;
	}

	
	public Integer getOverallFrequency() {
		return overallFrequency;
	}

	
	public Integer getTotalCount() {
		return totalCount;
	}

	
	public String getResourceLanguage() {		
		return termDetail.getResourceLanguage();
	}

	
	public double getRelevance() {
		return tfIdf;
	}

	
	public void setRelevance(double tfidf) {
		this.tfIdf = tfidf;
		
	}

}
